package joint.feature;

import java.util.Hashtable;
import java.util.List;

import def.BioNLPDocument;
import def.Event;

public class EventTypeFeature implements Feature {

	@Override
	public void apply(Hashtable<String, Integer> example, List<Event> events,
			BioNLPDocument doc, int sentId) {
		for (Event event: events){
			example.put("EVENTTYPE_"+event.eventType+"_"+event.tspan.text.toLowerCase(),1);
		}
	}

}
